package com.yuw.oop.staticdemo;

public class Vehicle {
	// 属性
	public static String brand;
	private String color;
	private double speed;

	// 行为
	/**
	 * 驾驶行为
	 */
	public void drive() {
		System.out.println(this.getBrand() + "牌交通工具在行驶，速度为" + this.getSpeed());
	}

	/**
	 * 报警行为
	 */
	public static void alert() {
		System.out.println("油量报警：要加油了~~~"+brand);
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public double getSpeed() {
		return speed;
	}

	public void setSpeed(double speed) {
		this.speed = speed;
	}

}
